<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:c="http://xmlns.jcp.org/jsf/composite"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<link type="text/css" rel="stylesheet"
		href="#{request.contextPath}/css/skytefAcesso.css" />
</h:head>
<h:body>
	<h:form styleClass="menu">
		<p:panel
			style="background: transparent; text-align:center; width: 171px;">Menu</p:panel>
		<p:panel style="background: transparent;height:3px;border:0px">
		</p:panel>
		<p:panelMenu rendered="true"
			styleClass="#{DashboardBean.usuario.tipo}">
	
			<p:submenu styleClass="menuCadastros" label="Cadastros">
				<p:menuitem styleClass="submenuClienteCadastrar"
					value="Cliente / Parceiro"
					action="#{DashboardBean.pageCadastrarCliente}" ajax="false"
					icon="ui-icon-plus" />
				<p:menuitem styleClass="submenuProdutoCadastrar" value="Produto"
					action="#" ajax="false" icon="ui-icon-plus" />
				<p:menuitem styleClass="submenuUsuario"
					value="Usuário"
					action="#{DashboardBean.pageCadastrarUsuario}" ajax="false"
					icon="ui-icon-plus" />
					
			</p:submenu>
			<p:submenu styleClass="menuImportacao" label="Importações">
				<p:menuitem styleClass="PlanilhasInternas submenu"
					value="Planilhas internas" action="#{DashboardBean.pageImportacao}"
					ajax="false" icon="ui-icon-folder-open" />
				<p:menuitem styleClass="PlanilhaExtremas submenu"
					value="Planilhas extrenas"
					action="#{DashboardBean.pageImportarVPN}" ajax="false"
					icon="ui-icon-folder-open" />
			</p:submenu>
			<p:submenu styleClass="menuTarefa" label="Tarefa">
				<p:menuitem id = "PageNova"  styleClass="TarefaNova submenu" value="Abrir nova"
					action="#{DashboardBean.pagenovaTarefa}" actionListener="#{TarefaBean.limpar}" update = "form:PageNova" ajax="false" 
					icon="ui-icon-plus" />
				<p:menuitem styleClass="TarefaConsulta submenu" value="Consulta"
					action="#{DashboardBean.pageconsultarTarefa}" actionListener="#{ConsultaTarefaBean.refreshPagina()}"
					update="@all" ajax="false" icon="ui-icon-search" />
			</p:submenu>
			<p:submenu styleClass="menuRelatorios" label="Relatório">
				<p:menuitem styleClass="RelatorioGerencial submenu"
					value="Grid Clientes" action="#{DashboardBean.pageExibirPlan}"
					ajax="false" icon="ui-icon-newwin" />
			</p:submenu>
		</p:panelMenu>
	</h:form>
</h:body>
</html>